#spawned

#Is Arrow Bundle's Arrow
execute if data entity @s item.components."minecraft:custom_data"{id:"arrow_bundle"} run function dab:system/generic_bow/is_arrow_bundle_arrow/init with entity @s item.components."minecraft:custom_data"

#tag
tag @s add generic_bow.arrow

##Generic Arrow/Arrow Bundle: "spawn" Event
execute as @s[tag=generic_arrow] run function dab:system/generic_arrow/spawn

#"spawned" Event
function dab:system/generic_bow/run/command/spawned with entity @s weapon.components."minecraft:custom_data".run

#"spawned_tick" Event set Tick
execute if data entity @s weapon.components."minecraft:custom_data".run.spawned_tick.tick run data modify entity @s weapon.components."minecraft:custom_data".T_E_M_Parrow_data.spawned_tick set from entity @s weapon.components."minecraft:custom_data".run.spawned_tick.tick

#data
data merge entity @s {crit:false}

#Durability
execute positioned ~ ~-1.65 ~ as @n[type=player] at @s run function dab:system/generic_bow/durability/consume